import axios from "axios";

const baiduInstance = axios.create({
    baseURL: "https://fanyi-api.baidu.com/api",
    timeout: 100000,
  });

export const getPublicEventsApi = (text: string, from: string, to: string ) => {
    return baiduInstance.get(`/trans/vip/translate?q=${text}&from=${from}&to=${to}&appid=20230804001769074&salt=1435660288&sign=iz1o3K0eUqpaKaWuIe7b`);
};